import axios from "@/utils/request"
//请求示例
//get
export const getList = (data) => {
    return axios({
        url: "/student",
        method: "get",
        data,
    })
}
export const getListBreak = (data) => {
    return axios({
        url: "/student/break",
        method: "get",
        data,
    })
}
export const updateStudent=(data)=>{
    return axios({
        url: "/student",
        method: "put",
        data,
    })
}
export const addStudent=(data)=>{
    return axios({
        url: "/student",
        method: "post",
        data,
    })
}
export const deleteStudent = (data) => {
    return axios({
        url: `/student/${data}`, // 使用反引号
        method: "delete",
    });
}
export const batchDeleteStudent = (data) => {
    return axios({
        url: '/student/batchDelete', // 使用反引号
        method: "delete",
        data
    });
}
//post
// export const mokePost = (data) => {
//     return axios({
//         url: "/api/xxxx",
//         method: "post",
//         data,
//         config: {
//             headers: {
//                 'Request-Type': 'wechat'
//             },
//             timeout: 10000
//         }
//     })
// }